package com.suneee.cloud.group.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name = "t_department")
public class DePartMentEntity  implements Serializable
{
	/**
	 * 企业编码
	 */
	@Column(name = "enterprise_code")
	private String enterpriseCode;
	
	/**
	 * 账号组编码
	 */
	@Column(name = "dept_code")
	private String deptCode;
	
	 /**
	  * 组名称
	  */
	@Column(name = "name")
	private String name;
	
	/**
	 * 是否有效  1：有效，0：无效 默认有效
	 */
	@Column(name = "enabled")
	private Integer enabled;
	
	//创建人
	@Column(name = "create_user")
	private String createUser;
	
	//创建时间
	@Column(name = "create_time")
	private Date createTime;
	
	//修改人
	@Column(name = "update_user")
	private String updateUser;
	
	//修改时间
	@Column(name = "update_time")
	private Date updateTime;
	
	@Transient
	private int level;
	
	@Transient
	List<DePartMentEntity> children;
	
	public String getEnterpriseCode() {
		return enterpriseCode;
	}
	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}
	public String getDeptCode() {
		return deptCode;
	}
	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getEnabled() {
		return enabled;
	}
	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public List<DePartMentEntity> getChildren() {
		return children;
	}
	public void setChildren(List<DePartMentEntity> children) {
		this.children = children;
	}
}
